package test;

public class CaseConverter {
    public static void main(String[] args) {
        String camelCase = "camelCaseExample";
        String snakeCase = camelCase.replaceAll("([A-Z])", "_$1").toLowerCase();
        System.out.println(snakeCase); // 输出: camel_case_example、
    }
}
